import { request } from '@/utils/request'
import { findByStorageKey } from '@/utils/localStorageUtil'

//获取用户信息
export const getUserInfo = () => {
  const accessToken = findByStorageKey('accessToken')
  return request.get('/test/user/info', {
    headers: {
      accessToken
    }
  })
}
